package com.dl.code.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "user")
public class User {

  private Integer userId;
  private String userAccount;
  private String userPassword;
  private String userSalt;
  @TableField(exist = false)
  private Role role;


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getUserAccount() {
    return userAccount;
  }

  public void setUserAccount(String userAccount) {
    this.userAccount = userAccount;
  }

  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }

  public String getUserSalt() {
    return userSalt;
  }

  public void setUserSalt(String userSalt) {
    this.userSalt = userSalt;
  }

  public Role getRole() {
    return role;
  }

  public void setRole(Role role) {
    this.role = role;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userAccount='" + userAccount + '\'' +
            ", userPassword='" + userPassword + '\'' +
            ", userSalt='" + userSalt + '\'' +
            ", role=" + role +
            '}';
  }
}
